Deviation, concentration or focusing of the beam by electric or magnetic means