Morphology of zinc oxide nanoparticles and nanowires: Role of surface and edge energies