Monitoring, prediction and control of injection molding quality based on tie-bar elongation