What year did the end of Imperial China occur