Synthesis and characterization of semiconducting nanowires for gas sensing