where ∆ϕ is the sum of the potential differences at two sides of the same metal electrode (therefore a factor 2 for the averaged Helmholtz capacitance), P z is the Berry phase polarization (see Supporting Information for further explanation) and L z is the length of simulation box in the direction perpendicular to the interface.