Fire-retardant carbon-fiber-reinforced thermoset composites