A geometrical optics method of pattern synthesis for linear arrays