Galvanic cell and Nernst equation