Use of fibre optics in NIR online spectroscopy