pH-sensitive membranes for lithium separation