Synthesis and characterization of substituted poly(anilines)