Structural transformation and human capital