Dynamic Segmented Beat Modulation Method for Denoising ECG Data from Wearable Sensors