Near infrared spectroscopy based brain-computer interface