Fibre refractive-index profiling by modified near-field scanning