Characterization of layered anisotropic media from prestack PS-wave-reflection data