Single-channel EEG classification of sleep stages based on REM microstructure