Nontrivial solutions for Strum-Liouville systems via a local minimum theorem for functionals