Innovation, specialization and growth in a model of structural change