Smart-material based energy harvesting