Endogenous Growth and Structural Change in a Dynamic Input-Output Model