Maximum likelihood estimation for spatial models by Markov chain Monte Carlo stochastic approximation