Gas-dependent photoresponse of SnS nanoparticles-based photodetectors