Solution to the double-well nonlinear Schrödinger equation with Stark-type external field