Narrow optical linewidths in erbium implanted in TiO2.