Homogenization of multicomponent alloys via partial melting