Nernst equation and cell potential