Electronic nanodevices for energy harvesting: a novel approach to thermal-energy conversion