Theoretical Investigations on a 1-THz Third-Harmonic Gyrotron