Capacitor integral with wiring layers