Background and limitations of near infrared spectroscopy