Theoretical Study on a 0.4-THz Second Harmonic Gyrotron