Bose–Einstein condensation dynamics in three dimensions by the pseudospectral and finite-difference methods