Thermodynamics: An Advanced Course with Problems and Solutions