Method for forming on a substrate a layer of semiconductor material has groups of the elements of base ii and vi