Applications of Thermodynamics in the Synthesis and Processing of Materials