The evolution of territoriality and society in top carnivores