Combinations of electrostatic and magnetic lenses