Numerical investigation of heat transfer and solidification in a cavity filled with molten metal alloys in the presence of thermodiffusion