Bio-based epoxy resins from biorefinery by-products