Energy recovery from hot gases - gas flaring