Excited state dynamics, molecular interactions, and electron transfer in systems for the photochemical production of hydrogen