Thermodynamic study of energy dissipation in adiabatic superconductor logic