Thermal energy and calorimetry