Automated detection of neonate EEG sleep stages