Measurement of refractive-index profile of optical-fibre preform