A unified view on heterogeneous and homogeneous catalysts through a combination of spectroscopy and quantum chemistry