A generalized smoothed particle hydrodynamics method for nonlinear dynamic problems