Stochastic processes on curved spaces