Generating electricity from industrial waste heat