Influence of electron-hole and donor-acceptor interactions on the distribution coefficients of impurities in multiply doped semiconductors