Microfabricated thermoelectric materials and devices for waste heat harvesting