Analysis of a 0.6-THz Second Harmonic Gyrotron With Gradually Tapered Cavity