Electron Trajectories and Gain in Free-Electron Lasers with Three-Dimensional Helical Wiggler and Ion-Channel Guiding