Crosslinking reaction of epoxy resin (diglycidyl ether of bisphenol A) by anionically polymerized polycaprolactam: I. Mechanism and optimization