Flash calculations for continuous or semicontinuous mixtures by use of an equation of state