Energetic balance of the superconducting transition across the BCS - Bose Einstein crossover in the attractive Hubbard model