A total least squares approach for data reduction of longterm ECG recordings