The peculiarities of the off-center ions dipole-dipole interaction in systems with carriers—narrow-gap ferroelectrics and superconductors