Stability and bonding mechanism of ternary (Mg, Fe, Ni)H 2 hydrides from first principles calculations