Kinetics and simulation of the imidization of poly(styrene‐co‐maleic anhydride) with amines