Collective Behavior by Modular Reinforcement-Learning Animats