Text this: State-space modeling approach for target localization using axial magnetic fields