Geometric Mechanics of Contact-Switching Systems