Peridynamics with adaptive grid refinement