The generation of stresses in oxide films growing by cation diffusion