Moment of inertia, Conservation of energy