Collective behavior: A framework for understanding how the actions of groups emerge from the way individuals generate and share information