Energy-efficient seizure detection for wearable EEG