Synthesis and characterization of a Mg–Ni-RE alloy for hydrogen storage