Optical gas sensing properties of ZnO nanowires