Charge transfer in collisions of doubly charged ions of iron and nickel with hydrogen atoms