Flexible scheme for measuring chromatic dispersion based on interference of frequency tones