Real-time inversion of polarization gate frequency-resolved optical gating spectrograms.