Temporal coherence and polarization modulation of pulse trains by resonance gratings