Effect of interfacial free energy on hydriding reaction of Mg-Ni thin films