Diameter regulated ZnO nanorod synthesis and its application in gas sensor optimization