Birefringence control in optical planar waveguides