The effect of grain boundary precipitation on the stability of extrinsic grain-boundary dislocations in austenitic steel and aluminium alloy