Chemical State and Refractive Index of Mg-Ion-Implanted Silica Glass