On the ricovery of refractive-index profiles of ion-exchanged glass waveguides