Magnesium hydride as a high capacity negative electrode for lithium ion batteries