Activities and activity coefficients in ternary systems