Seismic attenuation due to heterogeneities of rock fabric and fluid distribution