what happened to japan in the 1940s