Ni-Doped SnO2 Nanoparticles for Sensing and Photocatalysis