Synthesis and magnetic properties of Sn1−xCoxO2 nanostructures and their application in gas sensing