Refractive index profile reconstruction from near-field measurements: analysis and assessment