Metal and Covalent Organic Frameworks for Membrane Applications