The logic of animal intergroup conflict: A review