A Simple Model of the Rise and Fall of Civilizations