NATO withdrawal from Afghanistan will be gradual: Petraeus