Development of the 300 GHz/4 kW/CW gyrotron