Ecology and social relationships in two species of chimpanzee