Devices and methods for membrane-free production of acids and bases from saltwater