High resolution infrared spectroscopy as diagnostic tool for combustion and plasma chemistry