Adaptive Mode Transition Control Architecture with an Application to Unmanned Aerial Vehicles