Photon-induced impurity production in TEXTOR