Steam generator using flue gas waste heat