Confinement versus interface bound states in spin-orbit coupled nanowires