Cohesive models for quasistatic cracking in inelastic solids