Cooperative stability under stochastic quality and farmer heterogeneity