Distributed parameter modeling to prevent charge cancellation for discrete thickness piezoelectric energy harvester