Analysis of slow-wave sleep EEG in demented subjects