Local models for representing phase equilibriums in multicomponent, nonideal vapor-liquid and liquid-liquid systems. 1. Thermodynamic approximation functions