Doping of polycrystalline diamond by boron ion implantation