Effect of the radial thickness of electron beams on mode coupling and stability in gyrotrons