SMS: Demystifying switched-capacitor circuits