How did both internal and external connections promote the golden age of tang and song china