Linking global turnover of species and environments