Absolute linearity measurements on a PbS detector in the infrared