Thermo-migration of impurities from a solid