The steam engine considered as a thermodynamic machine: A treatise on the thermodynamic efficiency of steam engines