Thermal degradation of anhydride cured epoxy resins