Applications of thermal analysis in quality control of solidification processes