Magnetic suspension of a pellet for inertial confinement fusion