Laser-induced grating spectroscopy