Characterizing Large Language Model Geometry Solves Toxicity Detection and Generation