Production of Short Electron Bunches by Slow and Fast Excitations of Longitudinal Bunch-Shape Oscillations