The role of job assignment and human capital endowments in explaining gender differences in job performance and promotion