Magnetic bead detection using domain wall-based nanosensor