Stress-based nonlocal damage model