Finite-difference stochastic approximation