Self-diagnostic epoxy resin and related fiber composites