Matching the impedance of ionic polymer metal composites for energy harvesting