Gibbs free energy and spontaneity