Primary gas thermometry by means of near-infrared laser absorption spectroscopy and determination of the Boltzmann constant