Effects of surface defects on the mechanical properties of ZnO nanowires