Using MgO to improve the (de)hydriding properties of magnesium