Spectroscopic and computational elucidation of active sites in biological electron transfer and heterogeneous catalysis