Predicting slag viscosities in metallurgical systems