Creases and cracks in finite elasticity