Nanoporous polyanilines for pollutants removal from air and wastewater