Polymerization of aniline in an aqueous system containing organic solvents