A framework for ECG denoising for mobile devices