Ecological diversification and phylogeny of emydid turtles