Mg–Ni–RE nanocrystalline alloys for hydrogen storage