What were some advancements in ancient China that contributed to economic prosperity?