Population dynamics and genetic connectivity in recent chimpanzee history