Measurement of cytochrome oxidase redox state by near infrared spectroscopy