Transfer hydrogenation catalyst deactivation solved through in situ X-ray absorption spectroscopy