Environmental and socioeconomic correlates of extinction risk in endemic species