Recognition of coal from other minerals in powder form using terahertz spectroscopy