Great ape genetic diversity and population history