Terahertz time domain spectroscopy for mixture detection: A quantitative study