Portable low-power system for one-lead ECG monitoring and datalogging