Human capital investments and family composition