Novel technique for chromatic-dispersion measurement using a tunable erbium-doped-fiber laser with an intracavity test fiber