Describe the failure theories for brittle and ductile and which is better for which kind of materials.