Computer-aided detection of sleep apnea and sleep stage classification using HRV and EEG signals