Real-time in-situ monitoring of photocatalytic reactions by ATR infrared spectroscopy