[O-:1][Sn:2]([O-:4])=[O:3].[Cd+2:5].[Cr:6].[O-2:7].[Cr+3].[O-2].[O-2].[Cr+3]>>[Cr:6].[O-2:1].[Cr+3:6].[O-2:7].[O-2:1].[Cr+3:6].[O-:3][Sn:2]([O-:4])=[O:1].[Cd+2:5]In a wet chemical step, the cadmium stannate layer is treated with a solution containing chromium and/or chromium oxide, e.g. an aqueous solution of concentration from 1 to 10000 ppm chromium. Heat treatment at between about 100° C. and about 750° C. can be subsequently applied. In this way, either the cadmium stannate layer is impregnated with chromium/chromium oxide or a surface coating of chromium/chromium oxide is produced on the cadmium stannate layer.