Scattering and localized states for defocusing nonlinear Schr\"odinger equations with potential | Synapse