Quality Selection in Two-Sided Markets: A Constrained Price Discrimination Approach