Advanced Thermoluminescence Spectroscopy as a Research Tool for Semiconductor and Photonic Materials: A Review and Perspective