Chemical Thermodynamics in Ceramics