Adiabatic theorem for the Gross–Pitaevskii equation