Thermodynamics : an advanced course with problems and solutions