High-precision molecular spectroscopy in the mid-infrared using quantum cascade lasers