Poverty in an unequal world: a quantitative structural analysis of the effects of inequality between and within countries on world poverty, 1980-2007