Integration of terahertz and microfluidics technologies for effective spectroscopic analysis on a chip