Two-sided platforms with endogenous quality differentiation."