Numerical simulation of flow-induced stresses in mold filling process using a three-dimensional two-phase flow model