Lower-hybrid collapse, caviton turbulence, and charged particle energization in the topside auroral ionosphere and magnetosphere