Thermodynamics for the situation where there is a discontinuous change of the electrode condition with potential due to the formation of a two dimensional condensed phase—diffuse layer effects