Energy recovery by fuel cells arranged in the combustion plant