Post-1970 trends in within-country inequality and poverty: Rich and middle-income countries