Chemical potential of a layer of water adsorbed on a solid surface