Design of on‐board array antennas by pattern optimization