Optimal far-field focusing of uniformly spaced arrays subject to arbitrary upper bounds in nontarget directions