Perspective gyrotron with mode converter for co- and counter-rotation operating modes