What conditions were favorable to the development of agriculture in China?