Variation de G au cours d'une transformation, potentiel chimique