The Development of On-Chip THz Time-Domain Spectroscopy