Numerical simulation of high-power continuous-wave gyrotrons operated in the short-wavelength part of the millimeter-wave range