When did the Hongguang Emperor leave Nanjing, having been defeated?