Ab initio statistical mechanics of surface adsorption and desorption. I. H(2)O on MgO (001) at low coverage