Invertibility of nonparametric stochastic demand functions