A discrete nonlocal formulation using local constitutive laws