Effective isotropic potential for dipolar hard spheres