Hyperbranched flame retardant to simultaneously improve the fire-safety, toughness and glass transition temperature of epoxy resin