Prediction of thermal cross-slip stress in magnesium alloys from direct first-principles data