Wave-packet dynamics in slowly perturbed crystals: Gradient corrections and Berry-phase effects