Elastomeric Diffraction Gratings as Photothermal Detectors