A general theory for nonlocal softening plasticity of integral-type