Thermodynamic Modeling of the Li-H and Ca-H Systems