Joint Inversion of Frequency Components of PP- and PSV-Wave Amplitudes for Attenuation Factors Using Second-Order Derivatives of Anelastic Impedance