Demography, Human Capital Investment, and Lifetime Earnings for Women and Men