Variational study of ferromagnetism in the $t_1$-$t_2$ Hubbard chain