Energy Harvesting in a System with a Two-Stage Flexible Cantilever Beam