The invention of writing systems and the growth of cities occurred only in civilizations that