Developing Selective Carbon-Based Membranes for Ionic and Gas Separations