Gas bubbles and atomic diffusion mechanisms in CdTe solar cells