The geometric and electronic structures of I3− and I5− from effective-potential calculations