Piezoelectric nanowires in energy harvesting applications