Introduction to chemical thermodynamics