A quantitative analysis of image contrast from extrinsic stacking faults