Mass transport in the presence of internal defect reactions. Concept of conservative ensembles. III, Trapping effect of dopants on chemical diffusion