Numerical analysis of degradation kinetics in CdTe thin films