A quantile neural network framework for two-stage stochastic optimization