Using machine learning to extract cognitive status from the sleep EEG in progressing stages of dementia: defining interpretable and age-related features