Fabrication and study of self-assembled NiO surface networks assisted by Sn doping