A third-harmonic CW 1-THz gyrotron with a double-beam magnetron- injection gun for high selectivity of cavity mode