Theory of evolutionary factor analysis for resolution of ternary mixtures