Temperature dependence of the electric field gradient in the AgIn2 intermetallic compound