Heat recovery/residual heat solutions for the production of electricity