Ionic thermoelectric materials for waste heat harvesting