An improved method for piezoelectric characterization of polymers for energy harvesting applications