Text this: An approach to determine enthalpies of formation for ternary compounds