A nonlocal damage theory