Development, democracy, and welfare states