Pricing to market, firm heterogeneity and the role of quality