When was the Manchu Qing dynasty invasion