Long range scattering and modified wave operators for Hartree equations