Quantitative study on the effect of surface treatments on the electric characteristics of ZnO nanowires