Calculation of the diffusion of light impurities in tokamaks