Chemical interactions in titanium- and tungsten-implanted fused silica