Thermodynamic perturbation theory in studies of metal melts