Surface and precipitation polymerization of aniline