Knowledge gradient for expensive locally quadratic functions and stochastic optimization of aid allocation