Mesoscale power generation incorporating heat-recirculation, porous inert media, and thermoelectric modules