Optimizing discrete event systems with the simultaneous perturbation stochastic approximation algorithm