Water adsorption on metal surfaces: an electrochemical viewpoint