Solving Bayesian risk optimization via nested stochastic gradient estimation. (3rd October 2021)