Computer simulation and control for product quality in injection molding