Nonlinear attenuation and rock damage during strong seismic ground motions