Brittle and ductile fracture