Energy Harvesting from Piezoelectric Stacks Using Impacting Beam