Electron-cloud mitigation in the Spallation Neutron Source ring