Accurate redox potentials of transition metal complexes calculated using density functional theory and electrostatics