Capacitor device production