kept in a magnetic field is