Synergy of homogeneous and heterogeneous chemistry probed by in situ spatially resolved measurements of temperature and composition.