Three-dimensional manifolds having metrics with the same geodesics