Wave propagation in granular materials as continua with microstructure: application to seismic waves in a sediment filled site