Adsorption of a water molecule on the MgO(100) surface as described by cluster and slab models