A three-sector endogenous growth model with combined technological change: the choice between basic innovations and quality improvements