Scattering resonances as viscosity limits