Scattering by a cylinder covered with an arbitrary distribution of impedance and application to the optimization of a tramway noise abatement system