Official: Harassing emails led to FBI probe of Petraeus