Self-intersection in elasticity