Structural, optical, magnetic, and XPS properties of SnOx nanoparticles