A grain-scale model of inter-granular stress corrosion cracking in polycrystals