Synthesis and characterization of a soluble terpolymer from pyridylamine, aniline and xylidine