Effects of diffusion and primary creep on intergranular cavitation at high temperatures