Measurement of temporal coherence of light with copolarized and cross-polarized beams using cw laser-induced gratings