An Optimized, Variable-Gain Switched-Capacitor DC-DC Converter