Second sound and internal energy in solids