Optical responses of ion implanted nanoparticles in silica and glass