Piezoelectricity in ZnO nanowires: A first-principles study