Thermodynamics: Fundamentals for Applications