Modification of titanium by ion implantation of calcium and/or phosphorus