Nonsmooth Equation Method for Nonlinear Nonconvex Optimization