Waveguide electrooptic polarization transformer