How did japan become an important power after world war 1?