Energy recovery from combustion gases