Generalized mean spherical approximation for the multicomponent restricted primitive model.