On circles and spheres in Riemannian geometry