Nonlocal damage models: Displacement-based formulation