How did the meji restoration affect japan?