Thermodynamic analysis of phase equilibrium and surface tension of ternary polymer solutions