Kinetics and mechanism of the reactions of polyallylamine with aryl acetates and aryl methyl carbonates