An instrument for the characterization and calibration of optical sensors