Spectral characterization of the key parameters and elements in coal using terahertz spectroscopy