Seismic wave velocity and attenuation in rocks with mesoscopic-scale heterogeneity