An Adaptive Kalman Filter for Removing Baseline Wandering