Numerical techniques for the analysis of crack propagation in cohesive materials