Application of metal compounds as a source of diffusants for coatings applied from the metal melts