Waterborne lignin-based epoxy resin