Waveguide side-wall coupling in RF guns