A phase feature extraction technique for terahertz reflection spectroscopy