Phase, microstructure and hydrogen storage properties of Mg–Ni materials synthesized from metal nanoparticles