A High-Resolution Capacitance-to-Digital Converter based on Iterative Discharging