Stochastic quasigradient methods for optimization of discrete event systems