Departing commander in Afghanistan sees fruits of US strategy shift