The effect of gradients in regional stress and magma pressure on the form of sheet intrusions in cross section