Convexity of domains of Riemannian manifolds