A Long Cavity With Reduced Diffraction $Q$ for Subterahertz and Terahertz Gyrotrons