During carotid endarterectomy (CEA), the primary clinical purpose of continuous EEG monitoring is to: