A nonlocal peridynamics modeling approach for corrosion damage and crack propagation