Temporal Dynamics of Mode Interaction in Submillimeter-Wave Second-Harmonic Gyrotron