Intracavity ranging enabled by a single-frequency self-sweeping fiber laser with a few-longitudinal-mode range