Attention to external stimuli during wakefulness and sleep: evoked 40-Hz response and N350.