A model for predicting the excess enthalpies of ternary mixtures