Nondestructive Material Characterization in the Terahertz Band by Selective Extraction of Sample-Induced Echo Signals