What advancements in art and literature were significant during the dynasties of the Tang (618–907) and Song (960–1279)?