A rapid method of measuring dispersion in low coherence interferometry and optical coherence tomography systems