Factors shaping civilizations in ancient India and China