Compton scattering study of the electronic structure of magnesium hydride