Energetics of Cofactors in Photosynthetic Complexes: Relationship Between Protein–Cofactor Interactions and Midpoint Potentials