Microfluidic and terahertz technologies for integrated spectroscopic systems