Effect of adsorption, ionic strength and pH on the potential of the diffuse electric layer