Institutional quality, trade, and the changing distribution of world income