The role of thermal analysis in environmental protection