Parallel algorithms for two-stage stochastic optimization