Analysis of a stochastic approximation algorithm for computing quasi-stationary distributions. (September 2016)