Diffusivity of cobalt and nickel compounds as a function of concentration and temperature