Thermoelectricity For Waste Heat Recovery, Thermal Switching, And Active Cooling