Friedel–Crafts Synthesis of Carbazole-Based Hierarchical Nanoporous Organic Polymers for Adsorption of Ethane, Carbon Dioxide, and Methane