Spin Hall effect of Airy beam in inhomogeneous medium