Gibbs free energy and Electrochemical cells