Thermodynamic analysis of a Carnot battery unit with double exploitation of a waste heat source