Scatterometry for optimization of injection molded nanostructures at the fabrication line