Exact solutions in higher-dimensional Lovelock and AdS 5 Chern-Simons gravity