What challenge did both Japan and Egypt face when it came to industrialization that Japan was able to overcome, but Egypt was not?