Sequentially recover heavy metals from smelting wastewater using bioelectrochemical system coupled with thermoelectric generators.