Comparison of energy consumption in desalination by capacitive deionization and reverse osmosis