Local structure, optical and magnetic studies of Ni nanostructures embedded in a SiO2 matrix by ion implantation