Adsorption and diffusion of Mg, O, and O2 on the MgO(001) flat surface.