A probabilistic model of intergranular stress corrosion cracking