An ultra-low power dual-mode ECG monitor for healthcare and wellness