Polarization Synthesis of Arbitrary Arrays with Shaped Beam Pattern