Alloying of impurity materials, e.g. doping materials, electrode materials, with a semiconductor body