What impact did a surplus of food have on early civilizations?