Numerical Simulation and Optimization of Investment Casting for Complex Thin-walled Castings