Dislocation density reduction during impurity gettering in multicrystalline silicon