Text this: Application of spectral characteristics of electrocardiogram signals in sleep apnea