Comparison of frequency-resolved optical polarization gating induced by molecular alignment and Kerr effects.