A global perspective on social stratification in science