Two non-zero solutions for Sturm–Liouville equations with mixed boundary conditions