Earnings differentials between immigrants and natives: the role of occupational attainment