On the Dirac equation with a one-dimensional scalar potential