Adaptive filtering of ECG signal for deriving respiratory activity