An Exact Analysis of a Switched-Capacitor Circuit