Preferential growth of long ZnO nanowires and its application in gas sensor