Nonperturbative solutions for one‐dimensional Schrödinger equation with position‐dependent mass