The city of Nanjing was razed after the Sui dynasty took over it. Who defeated the court of Song?