Nonlocal modeling of softening in hypoplasticity