Modeling Cu migration in CdTe solar cells under device-processing and long-term stability conditions