Development of high power THz-TDS system based on S-band compact electron linac