Thermal analysis and calorimetry of pharmaceuticals