A new fracture criterion for peridynamic and dual-horizon peridynamics