Grain boundary design and control for intergranular stress-corrosion resistance