Optimized Structure of Nanoporous Carbon-Based Double-Layer Capacitors