Preparation of nanofiber mat for thermoset composites