A switched-capacitor interface for a capacitive sensor