Modulation of charge transport in metal-containing diamond layers modulation