Integrated stabilization and collision avoidance for automated vehicles in emergency scenarios