Spin–orbit-coupling induced localization in the expansion of an interacting Bose–Einstein condensate