Second-mode Waves in Hypersonic Boundary Layers: Energy Balance, Kinematics and Mechanics