Automatic Discovery and Processing of EEG Cohorts from Clinical Records