The curing procedure for a benzoxazine–cyanate–epoxy system and the properties of the terpolymer