Enhancement of hydrogen-storage performance of MgH2 by Mg2Ni formation and hydride-forming Ti addition