Revolution in China and Russia: reorganizing empires into nation states