A single ion as a shot noise limited magnetic field gradient probe