Sleep Apnea Detection by Means of Analyzing Electrocardiographic Signal