Gyrotron travelling wave amplifier: II. Effects of velocity spread and wall resistivity