Measurement of the near-infrared fluorescence of the air for the detection of ultra-high-energy cosmic rays