Density Functional Theory Calculations of Magnesium Hydride: A Comparison of Bulk and Nanoparticle Thermodynamics