A simple and reliable system for measuring the refractive index of liquids using a position-sensitive detector