Base-controlled mechanical systems and geometric phases