Liquid flow battery ion exchange principle