Riemannian stochastic approximation algorithms