The Career Evolution of the Sex Gap in Wages: Discrimination Versus Human Capital Investment