Stabilization of a class of Hamiltonian systems with nonholonomic constraints and its experimental evaluation