Why did the earliest civilizations appear in areas like Mesopotamia and the Indus Valley?