The Gyratron, CARM and FEL devices: An analytical unified formulation for the small signal analysis