Effect of Exchange with Local Moments and Hyperfine Interactions on the Electron-Spin-Resonance Line Shape in Metals