Terahertz Spectroscopy in Coal Mining: AI's 2025 Impact