Thermodiffusion in magnetic fluids