Repulsive force between two attractive dipoles, mediated by nanoparticles inside a ferrofluid