The Diffuse Interface Approach in Materials Science: Thermodynamic Concepts and Applications of Phase-Field Models