Energy dissipation by internal stresses in a free-rotating symmetric ellipsoid: Application to Comet P/Halley