A piezoelectric based energy harvester with dynamic magnification