Work history, labor force attachment, and earnings differences between the races and sexes