Optimal Simulator for Mixed Switched-Capacitor/Digital Networks