Text this: Low-cost High-performance Impedance Spectroscopy via Hardware–Software Co-design towards a CMOS Architecture