Optical method for the screening of doping substances