Adsorption and dissociation of hydrogen on MgO surface: A first-principles study