A potential-based particle method for failure modeling in solids