Separation of epoxy resins by functionality types