Unified EEG feature extraction for cross-subject driver state recognition and safe-stop trajectory planning,