Soliton localization in Bose–Einstein condensates with time-dependent harmonic potential and scattering length