Automatic detection of sleep spindles by analysis of harmonic components