Nodal properties and variational characterizations of solutions to nonlinear Sturm-Liouville problems