A Reaction Method for Estimating Gibbs Energy and Enthalpy of Formation of Complex Minerals