Self-organization on Riemannian manifolds