SH surface waves on inhomogeneous media