Computational multiscale modeling of intergranular cracking