A bio-based epoxy resin derived from p-hydroxycinnamic acid with high mechanical properties and flame retardancy