Molecular simulation of thermoset curing: application to 3D printing materials