Cross-country variation in educational attainment: structural change or within-industry skill upgrading?