A viscoelastic model for seismic attenuation using fractal mechanical networks