Structural properties and enthalpy of formation of magnesium hydride from quantum Monte Carlo calculations