On the Existence of Solutions for a Class of Schrödinger–Kirchhoff-Type Equations with Sign-Changing Potential