A mesh-free simulation of cracking and failure using the cohesive segments method