TiO2-based photocatalytic conversion processes: insights from in situ infrared spectroscopy