Characterization of the electrical properties and thickness of thin epitaxial semiconductor layers by THz reflection spectroscopy