Single-shot measurement of temperature and pressure using laser-induced thermal gratings with a long probe pulse