Preparations of selenium-containing heterocycles based on an intramolecular cyclization of selenols and relatives