Petraeus biographer made trips to Afghanistan