Modeling of random microstructural stresses and grain boundary damage in polycrystals