Antenna Array Pattern Synthesis by Optimization of Weighted Distance