Equilibria among condensed phases and a multi-component solution using the concept of generalized species: Part I. Systems with mixed complexes