Effective densities in local-density approximations of the nucleon-nucleon effective interaction