Gibbs Topological Analysis for Constructing Phase Diagrams of Binary and Ternary Mixtures