I-Corps: Electroencephalography based assessment of cognitive function