Measurement of attention and emotion levels for human adaptive mechatronics by near infrared spectroscopy