Measurement of the refractive-index profile of planar waveguides by the use of a double Lloyd's interferometer