Magnetic states of nanostructures containing Ni2+ ions at the surface of SiO2 nanospheres