Lock‐in rate‐window thermomodulation (thermal wave) and photomodulation spectrometry