Hydrogen storage behaviors of magnesium hydride catalyzed by transition metal carbides