The formation of different phases of CuxTe and their effects on CdTe/CdS solar cells