Demand-Pull and Technology-Push Effects in the Quality-Ladder Model