Single-channel EEG automatic sleep staging based on transition optimized HMM