Title: Endogenous human capital and technological change in closed and open economies