The hydrogen storage properties of Mg-intermetallic-hydrides by ab initio calculations and kinetic Monte Carlo simulations