Sensitivity Analysis of Merit Function in Solving Nonlinear Equations by Optimization