Resolution and stray light in near infrared spectroscopy.