The genetical history of humans and the great apes