code to integrate NIRS and fieldtrip