which geographic characteristic most influenced where the ancient civilizations of mesopotamia and egypt developed?