Gradient set splitting in nonconvex nonsmooth numerical optimization