Control Of Piecewise Smooth Systems: Generalized Absolute Stability And Applications To Supercavitating Vehicles