Sphalerons, knots, and dynamical compactification in Yang-Mills-Chern-Simons theories