Self-similar behavior for multicomponent coagulation