Influence of diffusion on W sputtering by carbon