Estimation of the ancestral effective population sizes of African great apes under different selection regimes