Structure and geometry of water adsorbed on the MgO(100) surface