Intense electron and ion beams