tools for processing NIRS data