Ferromagnetic Resonance in Thin Films. I. Theory of Normal-Mode Frequencies