Doping of polycrystalline CdTe for high-efficiency solar cells on flexible metal foil