Schwarz waveform relaxation method for one-dimensional Schrödinger equation with general potential