Variational analysis of Toda systems