Critical points of mixtures: An analogy with pure fluids