Thermal Analysis of Sulfur and Selenium Compounds with Multiple Applications, Including Anticancer Drugs