Hamilton-Jacobi Equations and Distance Functions on Riemannian Manifolds