Piezoelectric Response and Substrate Effect of ZnO Nanowires for Mechanical Energy Harvesting in Internet-of-Things Applications