Co-polar and cross-polar pattern synthesis for reconfigurable antenna arrays