Advanced thermodynamics for engineers