EU inks agreement on Iran's Arak reactor