Predicting failure stress for grain boundaries using average and local properties