Measurements of refractive‐index dispersion by optical waveguiding