Optimization of pricing and quality choice with the coexistence of secondary market and trade-in program