Anelastic degradation of acoustic pulses in rock