Single-trial detection in EEG and MEG: Keeping it linear