Accurate determination of the ordinary index profile of proton-exchanged waveguides