FTU diagnostic system based on THz time-domain spectroscopy