Mechanics of quasi-1D ZnO nanostructures for energy harvesting