Terahertz Time-domain attenuated total reflection spectroscopy using flow-through method for continuous analysis of dehydration process