A Density Functional Theory Study of the Charge State of Hydrogen in Metal Hydrides