Fractal dimension of the sleep state waveform in obstructive sleep apnea