Denoising and harmonic artifacts rejection for ECG P-waves by quadratic variation reduction