Elastic properties of inhomogeneous transversely isotropic rocks