Adaptive Coalitions in Multiagent Systems