Prediction and mitigation of disruptions in ASDEX Upgrade