Sound attenuation in ducts lined with granular material