Pyrolysis of fire retardant anhydride-cured epoxy resins