Effects of mechanical deformation on energy conversion efficiency of piezoelectric nanogenerators