Ecological correlates of extra-group paternity in mammals