Diversity and extinction risk are inversely related at a global scale