Few-layered ultrathin covalent organic framework membranes for gas separation: a computational study