The changing comparative advantage of Japan and the United States