Nanoporous polyanilines as sorbents for dyes and heavy metals abatement from water