Applying the reference-wavelength method to improve the precision of glucose measurement by near infrared spectroscopy