Lithium extraction from brine in an ionic selective desalination battery