where emperors resided before the meiji restoration