History of chemical thermodynamics