During the period of North–South division, Nanjing remained the capital of the Southern dynasties for more than two and a half centuries. How long was Nanjing the capital of the Southern dynasties?