Preparation and characterization of ZnO nanofibers by electrospinning