Combined gas-steam plants with carbon dioxide removal by membrane separation