Electrochemical Thermodynamics and Equilibrium