Characterization of the THz radiation source at the Frascati linear accelerator