From absolute potentials to a generalized computational standard hydrogen electrode for aqueous and non-aqueous solvents.