Temperature gradients in targets with high-intensity implantation and their influence on the characteristics of ion-modified layers