Sampling and estimation on manifolds using the Langevin diffusion