Measuring and directing charge transfer in heterogenous catalysts