Flame retardancy of epoxy resin nanocomposite with a novel polymeric nanoflame retardant