Analysis of simple distillation: case of a hypothetical ternary mixture with chemical reaction