The SPARC linear accelerator based terahertz source