Texting teen nearly impaled by fence post after crashing