PWM-based Transthoracic Bioimpedance Analyzer for Detecting Heart Failures