Magnetic dipole–vortex interaction in a bilayered superconductor/soft-magnet heterostructure