Nitrogen doping of diamond by ion implantation