An Adaptive Control Framework for Underactuated Switched Euler–Lagrange Systems