Characterization and Optimization of Heat Recovery in a Combined Heat and Power Generation Unit