Transforming the rural nonfarm economy: Opportunities and threats in the developing world