Ferromagnetic Resonance in Thin Films. II. Theory of Linewidths