Spatial variability of the dynamic response in periodic and non-homogeneous elastic media.