Construction of glass waveguide refractive index profiles by the effective index-finite difference method