The control of polarization of laser diodes