Generalized first-principles prediction of hydrogen para- equilibrium thermodynamics in metal hydrides