Why did job specialization emerge in cities as civilizations developed?