Determination of process parameters based on cavity pressure characteristics to enhance quality uniformity in injection molding