All-optical regeneration of polarization of a 40-Gbit/s return-to-zero telecommunication signal