Discretized bond-based peridynamics for solid mechanics