Conversion of the selenium or tellurium to the conductive state