Magnetic lenses