Residue curves for a reactive ternary system