New data indicate Japan may have lost its position as the world's third-largest economy to Germany.