Understanding of the polymerization mechanism of the phthalonitrile-based resins containing benzoxazine and their thermal stability