Elementary equivalence of rings with finitely generated additive groups