Time resolved characterization of the polarization state of optical pulses