Formation of the diluted magnetic semiconductor phase by thermal diffusion in the pulsed laser deposition method