Influence of a novel P/N-containing oligomer on flame retardancy and thermal degradation of intumescent flame-retardant epoxy resin