Capacitive deionization with wire-shaped electrodes