Quality analysis and prediction for multi-phase multi-mode injection molding processes