Thermal degradation mechanism of polybenzoxazines