thermodynamics and statistical mechanics