Brain Activity Detection Method for NIRS-BCI Rehabilitation System