Thermal diffusion in ternary mixtures