Stabilization of rigid body dynamics by the Energy-Casimir method