Equations for calculating Gibbs energy