When does nanotube grafting on fibers benefit the strength and toughness of composites?