A molecular dynamics study of the structure of water layers adsorbed on MgO(100)