Preparation of nitrogen-doped hierarchical porous carbon electrodes for high performance capacitive deionization