Conflict resolution following aggression in gregarious animals: a predictive framework