Variational analysis of low-lying states in supersymmetric Yang-Mills theory