How were the early civilizations of the Nile River Valley, Mesopotamia, and the Yellow River Valley similar?