Distribution of components between immiscible melts of a system under nonisothermal conditions